package com.wa.controller;

import com.wa.annotation.AccessLimit;
import com.wa.bean.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gary
 * @date 2021年12月15日 11:35
 */
@RestController
@RequestMapping("/interceptor")
public class InterceptorController {

    @PostMapping("/render")
    @AccessLimit(second = 20, maxCount = 12)
    public User render(User user) {
        return user;
    }
}
